package data.pryl;

import data.Pryl;

/**
 * User: Milica Bogdanovic
 * Date: 2013-01-12
 * Time: 08:36
 */
public class Apparat extends Pryl {

    private int slitage;
    private int pris;

    public Apparat(String namn, int slitage, int pris) {
        super(namn);
        this.slitage = slitage;
        this.pris = pris;
    }

    public int getSlitage() {
        return slitage;
    }

    public void setSlitage(int slitage) {
        this.slitage = slitage;
    }

    public int getPris() {
        return pris;
    }

    public void setPris(int pris) {
        this.pris = pris;
    }

    public int getVarde() {
        return (pris * slitage) / 10;
    }
}
